﻿using System.Collections;
using System.Collections.Generic;
using UnityEngine;

public class SCoreFunc : SFuncBase
{
    public override void ServerKeyDown()
    {
        base.ServerKeyDown();
        if(this.entity.TryGetTarget(out Entity tg))
        {
            funcAPI.StartCombine(tg.GetComponent<SCore>());

        }
        else
        {
            throw new System.Exception();
        }
    }
}